<template>
    <div class="wrapper" v-if="show">
        <!-- <van-popup v-model="show" round> -->
            <div class="layer"></div>
            <div class="container-wrapper">
                <div class="container">
                <slot ></slot>
                <img src="/static/images/close.png" alt="" class="close" @click="close">
            </div>
            
            </div>
        <!-- </van-popup> -->
    </div>
</template>
<script>
import axios from 'axios';
import {Toast} from 'vant';
export default {
    name:'joinForm',
    data() {
        return {
            show:false,
            form:{

            }
        }
    },
    
    methods: {
        close(){
            this.show=false
        }
    },
}
</script>
<style lang="scss" scoped>
    .wrapper{
        width: 100vw;
        position: fixed;
        height: 100vh;
        top:0;
        background: none !important;
        z-index: 99;
        background: none;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .layer{
        width: 100%;
        height: 100%;
        position: absolute;
        background: rgba(0, 0, 0,.6)
    }
    .container-wrapper{
        border-radius: 20px;
        background: #fff;
        position: relative;
        z-index: 100;
    }
    .header{
            
            .header-bg{
                width: 100%;
                border-top-left-radius: 20px;
                border-top-right-radius: 20px;
            }
            
        }
    .container{
        width: 80vw;
        position: relative;
    }
    .close{
        position: absolute;
        bottom: -120px;
        width: 100px;
        transform: translateX(-50%);
        left:50%;
        height: 100px;
    }
</style>
